import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.buffer.d.ts',
  content: "/*\n * Copyright (c) 2022 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (The type of \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit ArkTS\n */\n/**\n * The Buffer class is a global type for dealing with binary data directly. It can be constructed in a variety of ways.\n *\n * @namespace buffer\n * @syscap SystemCapability.Utils.Lang\n * @since 9\n */\n/**\n * The Buffer class is a global type for dealing with binary data directly. It can be constructed in a variety of ways.\n *\n * @namespace buffer\n * @syscap SystemCapability.Utils.Lang\n * @crossplatform\n * @since 10\n */\n/**\n * The Buffer class is a global type for dealing with binary data directly. It can be constructed in a variety of ways.\n *\n * @namespace buffer\n * @syscap SystemCapability.Utils.Lang\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare namespace buffer {\n    /**\n     * This parameter specifies the type of a common encoding format.\n     *\n     * @typedef { 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex' }\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * This parameter specifies the type of a common encoding format.\n     *\n     * @typedef { 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex' }\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Enumerates the supported encoding formats.\n     *\n     * @typedef { 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex' }\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex';\n    /**\n     * TypedArray inherits the features and methods of Int8Array\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * TypedArray inherits the features and methods of Int8Array\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * TypedArray inherits the features and methods of Int8Array\n     *\n     * @extends Int8Array\n     * @typedef TypedArray\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    interface TypedArray extends Int8Array {\n    }\n    /**\n     * Allocates a new Buffer for a fixed size bytes. If fill is undefined, the Buffer will be zero-filled.\n     *\n     * @param { number } size - size size The desired length of the new Buffer\n     * @param { string | Buffer | number } [fill] - fill [fill=0] A value to pre-fill the new Buffer with\n     * @param { BufferEncoding } [encoding] - encoding [encoding='utf8']  If `fill` is a string, this is its encoding\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types;\n     * 3.Parameter verification failed.\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Allocates a new Buffer for a fixed size bytes. If fill is undefined, the Buffer will be zero-filled.\n     *\n     * @param { number } size - size size The desired length of the new Buffer\n     * @param { string | Buffer | number } [fill] - fill [fill=0] A value to pre-fill the new Buffer with\n     * @param { BufferEncoding } [encoding] - encoding [encoding='utf8']  If `fill` is a string, this is its encoding\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types;\n     * 3.Parameter verification failed.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Creates and initializes a Buffer instance of the specified length.\n     *\n     * @param { number } size - Size of the Buffer instance to create, in bytes.\n     * @param { string | Buffer | number } [fill] - Value to be filled in the buffer. The default value is 0.\n     * @param { BufferEncoding } [encoding] - Encoding format (valid only when fill is a string). The default value is 'utf8'.\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types;\n     * 3.Parameter verification failed.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function alloc(size: number, fill?: string | Buffer | number, encoding?: BufferEncoding): Buffer;\n    /**\n     * Allocates a new Buffer for a fixed size bytes. The Buffer will not be initially filled.\n     *\n     * @param { number } size - size size The desired length of the new Buffer\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types;\n     * 3.Parameter verification failed.\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Allocates a new Buffer for a fixed size bytes. The Buffer will not be initially filled.\n     *\n     * @param { number } size - size size The desired length of the new Buffer\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types;\n     * 3.Parameter verification failed.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Creates a Buffer instance of the specified size from the buffer pool, without initializing it.\n     * You need to use fill() to initialize the Buffer instance created.\n     *\n     * @param { number } size - Size of the Buffer instance to create, in bytes.\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types;\n     * 3.Parameter verification failed.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function allocUninitializedFromPool(size: number): Buffer;\n    /**\n     * Allocates a new un-pooled Buffer for a fixed size bytes. The Buffer will not be initially filled.\n     *\n     * @param { number } size - size size The desired length of the new Buffer\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types;\n     * 3.Parameter verification failed.\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Allocates a new un-pooled Buffer for a fixed size bytes. The Buffer will not be initially filled.\n     *\n     * @param { number } size - size size The desired length of the new Buffer\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types;\n     * 3.Parameter verification failed.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Creates a Buffer instance of the specified size, without initializing it.\n     *\n     * @param { number } size - Size of the Buffer instance to create, in bytes.\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types;\n     * 3.Parameter verification failed.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function allocUninitialized(size: number): Buffer;\n    /**\n     * Returns the byte length of a string when encoded using `encoding`.\n     * This is not the same as [`String.prototype.length`], which does not account\n     * for the encoding that is used to convert the string into bytes.\n     *\n     * @param { string | Buffer | TypedArray | DataView | ArrayBuffer | SharedArrayBuffer } string - string string A value to calculate the length of\n     * @param { BufferEncoding } [encoding] - encoding [encoding='utf8'] If `string` is a string, this is its encoding\n     * @returns { number } The number of bytes contained within `string`\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Returns the byte length of a string when encoded using `encoding`.\n     * This is not the same as [`String.prototype.length`], which does not account\n     * for the encoding that is used to convert the string into bytes.\n     *\n     * @param { string | Buffer | TypedArray | DataView | ArrayBuffer | SharedArrayBuffer } string - string string A value to calculate the length of\n     * @param { BufferEncoding } [encoding] - encoding [encoding='utf8'] If `string` is a string, this is its encoding\n     * @returns { number } The number of bytes contained within `string`\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Obtains the number of bytes of a string based on the encoding format.\n     *\n     * @param { string | Buffer | TypedArray | DataView | ArrayBuffer | SharedArrayBuffer } string - Target string.\n     * @param { BufferEncoding } [encoding] - Encoding format of the string. The default value is 'utf8'.\n     * @returns { number } The number of bytes contained within `string`\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function byteLength(string: string | Buffer | TypedArray | DataView | ArrayBuffer | SharedArrayBuffer, encoding?: BufferEncoding): number;\n    /**\n     * Returns a new `Buffer` which is the result of concatenating all the `Buffer`instances in the `list` together.\n     *\n     * @param { Buffer[] | Uint8Array[] } list - list list List of `Buffer` or Uint8Array instances to concatenate\n     * @param { number } [totalLength] - totalLength totalLength Total length of the `Buffer` instances in `list` when concatenated\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types;\n     * 3.Parameter verification failed.\n     * @throws { BusinessError } 10200001 - The value of \"length\" is out of range. It must be >= 0 and <= uint32 max. Received value is: [length]\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Returns a new `Buffer` which is the result of concatenating all the `Buffer`instances in the `list` together.\n     *\n     * @param { Buffer[] | Uint8Array[] } list - list list List of `Buffer` or Uint8Array instances to concatenate\n     * @param { number } [totalLength] - totalLength totalLength Total length of the `Buffer` instances in `list` when concatenated\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types;\n     * 3.Parameter verification failed.\n     * @throws { BusinessError } 10200001 - The value of \"length\" is out of range. It must be >= 0 and <= uint32 max. Received value is: [length]\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Concatenates an array of Buffer instances of the specified length into a new instance.\n     *\n     * @param { Buffer[] | Uint8Array[] } list - Array of instances to concatenate.\n     * @param { number } [totalLength] - Total length of bytes to be copied. The default value is 0.\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types;\n     * 3.Parameter verification failed.\n     * @throws { BusinessError } 10200001 - The value of \"length\" is out of range. It must be >= 0 and <= uint32 max. Received value is: [length]\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function concat(list: Buffer[] | Uint8Array[], totalLength?: number): Buffer;\n    /**\n     * Allocates a new Buffer using an array of bytes in the range 0 – 255. Array entries outside that range will be truncated to fit into it.\n     *\n     * @param { number[] } array - array array an array of bytes in the range 0 – 255\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Allocates a new Buffer using an array of bytes in the range 0 – 255. Array entries outside that range will be truncated to fit into it.\n     *\n     * @param { number[] } array - array array an array of bytes in the range 0 – 255\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Creates a Buffer instance with the specified array.\n     *\n     * @param { number[] } array - Array to create a Buffer instance.\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function from(array: number[]): Buffer;\n    /**\n     * This creates a view of the ArrayBuffer without copying the underlying memory.\n     *\n     * @param { ArrayBuffer | SharedArrayBuffer } arrayBuffer - arrayBuffer arrayBuffer An ArrayBuffer,\n     * SharedArrayBuffer, for example the .buffer property of a TypedArray.\n     * @param { number } [byteOffset] - byteOffset [byteOffset = 0] Index of first byte to expose\n     * @param { number } [length] - length [length = arrayBuffer.byteLength - byteOffset] Number of bytes to expose\n     * @returns { Buffer } Return a view of the ArrayBuffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @throws { BusinessError } 10200001 - The value of \"[byteOffset/length]\" is out of range.\n     * It must be >= [left range] and <= [right range]. Received value is: [byteOffset/length]\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * This creates a view of the ArrayBuffer without copying the underlying memory.\n     *\n     * @param { ArrayBuffer | SharedArrayBuffer } arrayBuffer - arrayBuffer arrayBuffer An ArrayBuffer,\n     * SharedArrayBuffer, for example the .buffer property of a TypedArray.\n     * @param { number } [byteOffset] - byteOffset [byteOffset = 0] Index of first byte to expose\n     * @param { number } [length] - length [length = arrayBuffer.byteLength - byteOffset] Number of bytes to expose\n     * @returns { Buffer } Return a view of the ArrayBuffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @throws { BusinessError } 10200001 - The value of \"[byteOffset/length]\" is out of range.\n     * It must be >= [left range] and <= [right range]. Received value is: [byteOffset/length]\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Creates a Buffer instance of the specified length that shares memory with arrayBuffer.\n     *\n     * @param { ArrayBuffer | SharedArrayBuffer } arrayBuffer - ArrayBuffer or SharedArrayBuffer instance whose memory is to be shared.\n     * @param { number } [byteOffset] - Byte offset. The default value is 0.\n     * @param { number } [length] - Length of the Buffer instance to create, in bytes. The default value is arrayBuffer.byteLength minus byteOffset.\n     * @returns { Buffer } Return a view of the ArrayBuffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @throws { BusinessError } 10200001 - The value of \"[byteOffset/length]\" is out of range.\n     * It must be >= [left range] and <= [right range]. Received value is: [byteOffset/length]\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function from(arrayBuffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): Buffer;\n    /**\n     * Copies the passed buffer data onto a new Buffer instance.\n     *\n     * @param { Buffer | Uint8Array } buffer - buffer buffer An existing Buffer or Uint8Array from which to copy data\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Copies the passed buffer data onto a new Buffer instance.\n     *\n     * @param { Buffer | Uint8Array } buffer - buffer buffer An existing Buffer or Uint8Array from which to copy data\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Copies the data of a passed Buffer instance to create a new Buffer instance and returns the new one.\n     *\n     * @param { Buffer | Uint8Array } buffer - Buffer or Uint8Array instance.\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function from(buffer: Buffer | Uint8Array): Buffer;\n    /**\n     * For the object whose value returned by valueof() function is strictly equal to object\n     * or supports symbol To primitive object, a new buffer instance is created.\n     *\n     * @param { Object } object - object object An object supporting Symbol.toPrimitive or valueOf()\n     * @param { number | string } offsetOrEncoding - offsetOrEncoding offsetOrEncoding A byte-offset or encoding\n     * @param { number } length - length length A length\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * For the object whose value returned by valueof() function is strictly equal to object\n     * or supports symbol To primitive object, a new buffer instance is created.\n     *\n     * @param { Object } object - object object An object supporting Symbol.toPrimitive or valueOf()\n     * @param { number | string } offsetOrEncoding - offsetOrEncoding offsetOrEncoding A byte-offset or encoding\n     * @param { number } length - length length A length\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Creates a Buffer instance based on the specified object.\n     *\n     * @param { Object } object - Object that supports Symbol.toPrimitive or valueOf().\n     * @param { number | string } offsetOrEncoding - Byte offset or encoding format.\n     * @param { number } length - Length of the Buffer instance to create, in bytes.\n     * @returns { Buffer } Return a new allocated Buffer\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function from(object: Object, offsetOrEncoding: number | string, length: number): Buffer;\n    /**\n     * Creates a new Buffer containing string. The encoding parameter identifies the character encoding\n     * to be used when converting string into bytes.\n     *\n     * @param { String } string - string string  A string to encode\n     * @param { BufferEncoding } [encoding] - encoding [encoding='utf8'] The encoding of string\n     * @returns { Buffer } Return a new Buffer containing string\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Creates a new Buffer containing string. The encoding parameter identifies the character encoding\n     * to be used when converting string into bytes.\n     *\n     * @param { String } string - string string  A string to encode\n     * @param { BufferEncoding } [encoding] - encoding [encoding='utf8'] The encoding of string\n     * @returns { Buffer } Return a new Buffer containing string\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Creates a Buffer instance based on a string in the given encoding format.\n     *\n     * @param { String } string - String.\n     * @param { BufferEncoding } [encoding] - Encoding format of the string. The default value is 'utf8'.\n     * @returns { Buffer } Return a new Buffer containing string\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function from(string: String, encoding?: BufferEncoding): Buffer;\n    /**\n     * Returns true if obj is a Buffer, false otherwise\n     *\n     * @param { Object } obj - obj obj Objects to be judged\n     * @returns { boolean } true or false\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Returns true if obj is a Buffer, false otherwise\n     *\n     * @param { Object } obj - obj obj Objects to be judged\n     * @returns { boolean } true or false\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Checks whether the specified object is a Buffer instance.\n     *\n     * @param { Object } obj - Object to check.\n     * @returns { boolean } true or false\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function isBuffer(obj: Object): boolean;\n    /**\n     * Returns true if encoding is the name of a supported character encoding, or false otherwise.\n     *\n     * @param { string } encoding - encoding encoding A character encoding name to check\n     * @returns { boolean } true or false\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Returns true if encoding is the name of a supported character encoding, or false otherwise.\n     *\n     * @param { string } encoding - encoding encoding A character encoding name to check\n     * @returns { boolean } true or false\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Checks whether the encoding format is supported.\n     *\n     * @param { string } encoding - Encoding format.\n     * @returns { boolean } true or false\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function isEncoding(encoding: string): boolean;\n    /**\n     * Compares buf1 to buf2\n     *\n     * @param { Buffer | Uint8Array } buf1 - buf1 buf1 A Buffer or Uint8Array instance.\n     * @param { Buffer | Uint8Array } buf2 - buf2 buf2 A Buffer or Uint8Array instance.\n     * @returns { -1 | 0 | 1 } 0 is returned if target is the same as buf\n     *         1 is returned if target should come before buf when sorted.\n     *        -1 is returned if target should come after buf when sorted.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Compares buf1 to buf2\n     *\n     * @param { Buffer | Uint8Array } buf1 - buf1 buf1 A Buffer or Uint8Array instance.\n     * @param { Buffer | Uint8Array } buf2 - buf2 buf2 A Buffer or Uint8Array instance.\n     * @returns { -1 | 0 | 1 } 0 is returned if target is the same as buf\n     *         1 is returned if target should come before buf when sorted.\n     *        -1 is returned if target should come after buf when sorted.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Compares two Buffer instances. This API is used for sorting Buffer instances.\n     *\n     * @param { Buffer | Uint8Array } buf1 - Buffer instance to compare.\n     * @param { Buffer | Uint8Array } buf2 - Buffer instance to compare.\n     * @returns { -1 | 0 | 1 } 0 is returned if target is the same as buf\n     *         1 is returned if target should come before buf when sorted.\n     *        -1 is returned if target should come after buf when sorted.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function compare(buf1: Buffer | Uint8Array, buf2: Buffer | Uint8Array): -1 | 0 | 1;\n    /**\n     * Re-encodes the given Buffer or Uint8Array instance from one character encoding to another.\n     *\n     * @param { Buffer | Uint8Array } source - source source A Buffer or Uint8Array instance.\n     * @param { string } fromEnc - fromEnc fromEnc The current encoding\n     * @param { string } toEnc - toEnc toEnc To target encoding\n     * @returns { Buffer } Returns a new Buffer instance\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Re-encodes the given Buffer or Uint8Array instance from one character encoding to another.\n     *\n     * @param { Buffer | Uint8Array } source - source source A Buffer or Uint8Array instance.\n     * @param { string } fromEnc - fromEnc fromEnc The current encoding\n     * @param { string } toEnc - toEnc toEnc To target encoding\n     * @returns { Buffer } Returns a new Buffer instance\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Transcodes the given Buffer or Uint8Array object from one encoding format to another.\n     *\n     * @param { Buffer | Uint8Array } source - Instance to encode.\n     * @param { string } fromEnc - Current encoding format\n     * @param { string } toEnc - Target encoding format.\n     * @returns { Buffer } Returns a new Buffer instance\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function transcode(source: Buffer | Uint8Array, fromEnc: string, toEnc: string): Buffer;\n    /**\n     * The Buffer object is a method of handling buffers dedicated to binary data.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * The Buffer object is a method of handling buffers dedicated to binary data.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * The Buffer object is a method of handling buffers dedicated to binary data.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    class Buffer {\n        /**\n         * Returns the number of bytes in buf\n         *\n         * @type { number }\n         * @throws { BusinessError } 10200013 - Length  cannot be set for the buffer that has only a getter.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Returns the number of bytes in buf\n         *\n         * @type { number }\n         * @throws { BusinessError } 10200013 - Length  cannot be set for the buffer that has only a getter.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Returns the number of bytes in buf\n         *\n         * @type { number }\n         * @throws { BusinessError } 10200013 - Length  cannot be set for the buffer that has only a getter.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        length: number;\n        /**\n         * The underlying ArrayBuffer object based on which this Buffer object is created.\n         *\n         * @type { ArrayBuffer }\n         * @throws { BusinessError } 10200013 - Buffer cannot be set for the buffer that has only a getter.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * The underlying ArrayBuffer object based on which this Buffer object is created.\n         *\n         * @type { ArrayBuffer }\n         * @throws { BusinessError } 10200013 - Buffer cannot be set for the buffer that has only a getter.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The underlying ArrayBuffer object based on which this Buffer object is created.\n         *\n         * @type { ArrayBuffer }\n         * @throws { BusinessError } 10200013 - Buffer cannot be set for the buffer that has only a getter.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        buffer: ArrayBuffer;\n        /**\n         * The byteOffset of the Buffers underlying ArrayBuffer object\n         *\n         * @type { number }\n         * @throws { BusinessError } 10200013 - ByteOffset  cannot be set for the buffer that has only a getter.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * The byteOffset of the Buffers underlying ArrayBuffer object\n         *\n         * @type { number }\n         * @throws { BusinessError } 10200013 - ByteOffset  cannot be set for the buffer that has only a getter.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The byteOffset of the Buffers underlying ArrayBuffer object\n         *\n         * @type { number }\n         * @throws { BusinessError } 10200013 - ByteOffset  cannot be set for the buffer that has only a getter.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        byteOffset: number;\n        /**\n         * Fills buf with the specified value. If the offset and end are not given, the entire buf will be filled.\n         *\n         * @param { string | Buffer | Uint8Array | number } value - value value The value with which to fill buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to fill buf\n         * @param { number } [end] - end [end = buf.length] Where to stop filling buf (not inclusive)\n         * @param { BufferEncoding } [encoding] - encoding [encoding='utf8'] The encoding for value if value is a string\n         * @returns { Buffer } A reference to buf\n         * @throws { BusinessError } 10200001 - The value of \"[offset/end]\" is out of range. It must be >= 0 and <= [right range]. Received value is: [offset/end]\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Incorrect parameter types;\n         * 2.Parameter verification failed.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Fills buf with the specified value. If the offset and end are not given, the entire buf will be filled.\n         *\n         * @param { string | Buffer | Uint8Array | number } value - value value The value with which to fill buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to fill buf\n         * @param { number } [end] - end [end = buf.length] Where to stop filling buf (not inclusive)\n         * @param { BufferEncoding } [encoding] - encoding [encoding='utf8'] The encoding for value if value is a string\n         * @returns { Buffer } A reference to buf\n         * @throws { BusinessError } 10200001 - The value of \"[offset/end]\" is out of range. It must be >= 0 and <= [right range]. Received value is: [offset/end]\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Incorrect parameter types;\n         * 2.Parameter verification failed.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Fills this Buffer instance at the specified position. By default, data is filled cyclically.\n         *\n         * @param { string | Buffer | Uint8Array | number } value - Value to fill.\n         * @param { number } [offset] - Offset to the start position in this Buffer instance where data is filled. The default value is 0.\n         * @param { number } [end] - Offset to the end position in this Buffer instance (not inclusive). The default value is the length of this Buffer instance.\n         * @param { BufferEncoding } [encoding] - Encoding format (valid only when value is a string). The default value is 'utf8'.\n         * @returns { Buffer } A reference to buf\n         * @throws { BusinessError } 10200001 - The value of \"[offset/end]\" is out of range. It must be >= 0 and <= [right range]. Received value is: [offset/end]\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Incorrect parameter types;\n         * 2.Parameter verification failed.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        fill(value: string | Buffer | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): Buffer;\n        /**\n         * Compares buf with target and returns a number indicating whether buf comes before, after,\n         * or is the same as target in sort order. Comparison is based on the actual sequence of bytes in each Buffer.\n         *\n         * @param { Buffer | Uint8Array } target - target target A Buffer or Uint8Array with which to compare buf\n         * @param { number } [targetStart] - targetStart [targetStart = 0] The offset within target at which to begin comparison\n         * @param { number } [targetEnd] - targetEnd [targetEnd = target.length] The offset within target at which to end comparison (not inclusive)\n         * @param { number } [sourceStart] - sourceStart [sourceStart = 0] The offset within buf at which to begin comparison\n         * @param { number } [sourceEnd] - sourceEnd [sourceEnd = buf.length] The offset within buf at which to end comparison (not inclusive)\n         * @returns { -1 | 0 | 1 } 0 is returned if target is the same as buf\n         *         1 is returned if target should come before buf when sorted.\n         *        -1 is returned if target should come after buf when sorted.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[targetStart/targetEnd/sourceStart/sourceEnd]\" is out of range.\n         *         It must be >= 0 and <= [right range]. Received value is: [targetStart/targetEnd/sourceStart/sourceEnd]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Compares buf with target and returns a number indicating whether buf comes before, after,\n         * or is the same as target in sort order. Comparison is based on the actual sequence of bytes in each Buffer.\n         *\n         * @param { Buffer | Uint8Array } target - target target A Buffer or Uint8Array with which to compare buf\n         * @param { number } [targetStart] - targetStart [targetStart = 0] The offset within target at which to begin comparison\n         * @param { number } [targetEnd] - targetEnd [targetEnd = target.length] The offset within target at which to end comparison (not inclusive)\n         * @param { number } [sourceStart] - sourceStart [sourceStart = 0] The offset within buf at which to begin comparison\n         * @param { number } [sourceEnd] - sourceEnd [sourceEnd = buf.length] The offset within buf at which to end comparison (not inclusive)\n         * @returns { -1 | 0 | 1 } 0 is returned if target is the same as buf\n         *         1 is returned if target should come before buf when sorted.\n         *        -1 is returned if target should come after buf when sorted.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[targetStart/targetEnd/sourceStart/sourceEnd]\" is out of range.\n         *         It must be >= 0 and <= [right range]. Received value is: [targetStart/targetEnd/sourceStart/sourceEnd]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Compares this Buffer instance with another instance.\n         *\n         * @param { Buffer | Uint8Array } target - Target Buffer instance to compare.\n         * @param { number } [targetStart] - Offset to the start of the data to compare in the target Buffer instance. The default value is 0.\n         * @param { number } [targetEnd] - Offset to the end of the data to compare in the target Buffer instance (not inclusive).\n         * The default value is the length of the target Buffer instance.\n         * @param { number } [sourceStart] - Offset to the start of the data to compare in this Buffer instance. The default value is 0.\n         * @param { number } [sourceEnd] - Offset to the end of the data to compare in this Buffer instance (not inclusive).\n         * The default value is the length of this Buffer instance.\n         * @returns { -1 | 0 | 1 } 0 is returned if target is the same as buf\n         *         1 is returned if target should come before buf when sorted.\n         *        -1 is returned if target should come after buf when sorted.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[targetStart/targetEnd/sourceStart/sourceEnd]\" is out of range.\n         *         It must be >= 0 and <= [right range]. Received value is: [targetStart/targetEnd/sourceStart/sourceEnd]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        compare(target: Buffer | Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): -1 | 0 | 1;\n        /**\n         * Copies data from a region of buf to a region in target, even if the target memory region overlaps with buf.\n         * If sourceEnd is greater than the length of the target, the length of the target shall prevail, and the extra part will not be overwritten.\n         *\n         * @param { Buffer | Uint8Array } target - target target A Buffer or Uint8Array to copy into\n         * @param { number } [targetStart] - targetStart [targetStart = 0] The offset within target at which to begin writing\n         * @param { number } [sourceStart] - sourceStart [sourceStart = 0] The offset within buf from which to begin copying\n         * @param { number } [sourceEnd] - sourceEnd [sourceEnd = buf.length] The offset within buf at which to stop copying (not inclusive)\n         * @returns { number } The number of bytes copied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[targetStart/sourceStart/sourceEnd]\" is out of range. It must be >= 0.\n         *                                    Received value is: [targetStart/sourceStart/sourceEnd]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Copies data from a region of buf to a region in target, even if the target memory region overlaps with buf.\n         * If sourceEnd is greater than the length of the target, the length of the target shall prevail, and the extra part will not be overwritten.\n         *\n         * @param { Buffer | Uint8Array } target - target target A Buffer or Uint8Array to copy into\n         * @param { number } [targetStart] - targetStart [targetStart = 0] The offset within target at which to begin writing\n         * @param { number } [sourceStart] - sourceStart [sourceStart = 0] The offset within buf from which to begin copying\n         * @param { number } [sourceEnd] - sourceEnd [sourceEnd = buf.length] The offset within buf at which to stop copying (not inclusive)\n         * @returns { number } The number of bytes copied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[targetStart/sourceStart/sourceEnd]\" is out of range. It must be >= 0.\n         *                                    Received value is: [targetStart/sourceStart/sourceEnd]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Copies data at the specified position in this Buffer instance to the specified position in another Buffer instance.\n         *\n         * @param { Buffer | Uint8Array } target - Instance to which data is copied.\n         * @param { number } [targetStart] - Offset to the start position in the target instance where data is copied. The default value is 0.\n         * @param { number } [sourceStart] - Offset to the start position in this Buffer instance where data is copied. The default value is 0.\n         * @param { number } [sourceEnd] - Offset to the end position in this Buffer instance (not inclusive).\n         * The default value is the length of this Buffer instance.\n         * @returns { number } The number of bytes copied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[targetStart/sourceStart/sourceEnd]\" is out of range. It must be >= 0.\n         *                                    Received value is: [targetStart/sourceStart/sourceEnd]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        copy(target: Buffer | Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;\n        /**\n         * Returns true if both buf and otherBuffer have exactly the same bytes, false otherwise\n         *\n         * @param { Uint8Array | Buffer } otherBuffer - otherBuffer otherBuffer A Buffer or Uint8Array with which to compare buf\n         * @returns { boolean } true or false\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Returns true if both buf and otherBuffer have exactly the same bytes, false otherwise\n         *\n         * @param { Uint8Array | Buffer } otherBuffer - otherBuffer otherBuffer A Buffer or Uint8Array with which to compare buf\n         * @returns { boolean } true or false\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether this Buffer instance is the same as another Buffer instance.\n         *\n         * @param { Uint8Array | Buffer } otherBuffer - Buffer instance to compare.\n         * @returns { boolean } true or false\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        equals(otherBuffer: Uint8Array | Buffer): boolean;\n        /**\n         * Returns true if value was found in buf, false otherwise\n         *\n         * @param { string | number | Buffer | Uint8Array } value - value value What to search for\n         * @param { number } [byteOffset] - byteOffset [byteOffset = 0] Where to begin searching in buf. If negative, then offset is calculated from the end of buf\n         * @param { BufferEncoding } [encoding] - encoding [encoding='utf8'] If value is a string, this is its encoding\n         * @returns { boolean } true or false\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Returns true if value was found in buf, false otherwise\n         *\n         * @param { string | number | Buffer | Uint8Array } value - value value What to search for\n         * @param { number } [byteOffset] - byteOffset [byteOffset = 0] Where to begin searching in buf. If negative, then offset is calculated from the end of buf\n         * @param { BufferEncoding } [encoding] - encoding [encoding='utf8'] If value is a string, this is its encoding\n         * @returns { boolean } true or false\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether this Buffer instance contains the specified value.\n         *\n         * @param { string | number | Buffer | Uint8Array } value - Value to match.\n         * @param { number } [byteOffset] - Number of bytes to skip before starting to check data.\n         * Number of bytes to skip before starting to check data. If the offset is a negative number,\n         * data is checked from the end of the Buffer instance. The default value is 0.\n         * @param { BufferEncoding } [encoding] - Encoding format (valid only when value is a string). The default value is 'utf8'.\n         * @returns { boolean } true or false\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        includes(value: string | number | Buffer | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): boolean;\n        /**\n         * The index of the first occurrence of value in buf\n         *\n         * @param { string | number | Buffer | Uint8Array } value - value value What to search for\n         * @param { number } [byteOffset] - byteOffset [byteOffset = 0] Where to begin searching in buf\n         * @param { BufferEncoding } [encoding] - encoding [encoding='utf8'] If value is a string,\n         * this is the encoding used to determine the binary representation of the string that will be searched for in buf\n         * @returns { number } The index of the first occurrence of value in buf, or -1 if buf does not contain value\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * The index of the first occurrence of value in buf\n         *\n         * @param { string | number | Buffer | Uint8Array } value - value value What to search for\n         * @param { number } [byteOffset] - byteOffset [byteOffset = 0] Where to begin searching in buf\n         * @param { BufferEncoding } [encoding] - encoding [encoding='utf8'] If value is a string,\n         * this is the encoding used to determine the binary representation of the string that will be searched for in buf\n         * @returns { number } The index of the first occurrence of value in buf, or -1 if buf does not contain value\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the index of the first occurrence of the specified value in this Buffer instance.\n         *\n         * @param { string | number | Buffer | Uint8Array } value - Value to match.\n         * @param { number } [byteOffset] - Number of bytes to skip before starting to check data.\n         * If the offset is a negative number, data is checked from the end of the Buffer instance. The default value is 0.\n         * @param { BufferEncoding } [encoding] - Encoding format (valid only when value is a string). The default value is 'utf8'.\n         * @returns { number } The index of the first occurrence of value in buf, or -1 if buf does not contain value\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        indexOf(value: string | number | Buffer | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;\n        /**\n         * Creates and returns an iterator of buf keys (indices).\n         *\n         * @returns { IterableIterator<number> }\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Creates and returns an iterator of buf keys (indices).\n         *\n         * @returns { IterableIterator<number> }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Creates and returns an iterator that contains the keys of this Buffer instance.\n         *\n         * @returns { IterableIterator<number> }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        keys(): IterableIterator<number>;\n        /**\n         * Creates and returns an iterator for buf values (bytes).\n         *\n         * @returns { IterableIterator<number> }\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Creates and returns an iterator for buf values (bytes).\n         *\n         * @returns { IterableIterator<number> }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Creates and returns an iterator that contains the values of this Buffer instance.\n         *\n         * @returns { IterableIterator<number> }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        values(): IterableIterator<number>;\n        /**\n         * Creates and returns an iterator of [index, byte] pairs from the contents of buf.\n         *\n         * @returns { IterableIterator<[number, number]> }\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Creates and returns an iterator of [index, byte] pairs from the contents of buf.\n         *\n         * @returns { IterableIterator<[number, number]> }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Creates and returns an iterator that contains key-value pairs of this Buffer instance.\n         *\n         * @returns { IterableIterator<[number, number]> }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        entries(): IterableIterator<[\n            number,\n            number\n        ]>;\n        /**\n         * The index of the last occurrence of value in buf\n         *\n         * @param { string | number | Buffer | Uint8Array } value - value value What to search for\n         * @param { number } [byteOffset] - byteOffset [byteOffset = 0] Where to begin searching in buf\n         * @param { BufferEncoding } [encoding] - encoding [encoding='utf8'] If value is a string,\n         * this is the encoding used to determine the binary representation of the string that will be searched for in buf\n         * @returns { number } The index of the last occurrence of value in buf, or -1 if buf does not contain value\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * The index of the last occurrence of value in buf\n         *\n         * @param { string | number | Buffer | Uint8Array } value - value value What to search for\n         * @param { number } [byteOffset] - byteOffset [byteOffset = 0] Where to begin searching in buf\n         * @param { BufferEncoding } [encoding] - encoding [encoding='utf8'] If value is a string,\n         * this is the encoding used to determine the binary representation of the string that will be searched for in buf\n         * @returns { number } The index of the last occurrence of value in buf, or -1 if buf does not contain value\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the index of the last occurrence of the specified value in this Buffer instance.\n         *\n         * @param { string | number | Buffer | Uint8Array } value - Value to match.\n         * @param { number } [byteOffset] - Number of bytes to skip before starting to check data.\n         * If the offset is a negative number, data is checked from the end of the Buffer instance.\n         * The default value is the length of this Buffer instance.\n         * @param { BufferEncoding } [encoding] - Encoding format (valid only when value is a string). The default value is 'utf8'.\n         * @returns { number } The index of the last occurrence of value in buf, or -1 if buf does not contain value\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        lastIndexOf(value: string | number | Buffer | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;\n        /**\n         * Reads a signed, big-endian 64-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { bigint } Return a signed, big-endian 64-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads a signed, big-endian 64-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { bigint } Return a signed, big-endian 64-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads a 64-bit, big-endian, signed big integer from this Buffer instance at the specified offset.\n         *\n         * @param { number } [offset] - Number of bytes to skip before starting to read data. The default value is 0. The value range is [0, Buffer.length - 8].\n         * @returns { bigint } Return a signed, big-endian 64-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readBigInt64BE(offset?: number): bigint;\n        /**\n         * Reads a signed, little-endian 64-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { bigint } Return a signed, little-endian 64-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads a signed, little-endian 64-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { bigint } Return a signed, little-endian 64-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads a 64-bit, little-endian, signed big integer from this Buffer instance at the specified offset.\n         *\n         * @param { number } [offset] - Number of bytes to skip before starting to read data. The default value is 0. The value range is [0, Buffer.length - 8].\n         * @returns { bigint } Return a signed, little-endian 64-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readBigInt64LE(offset?: number): bigint;\n        /**\n         * Reads a unsigned, big-endian 64-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { bigint } Return a unsigned, big-endian 64-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads a unsigned, big-endian 64-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { bigint } Return a unsigned, big-endian 64-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads a 64-bit, big-endian, unsigned big integer from this Buffer instance at the specified offset.\n         *\n         * @param { number } [offset] - Number of bytes to skip before starting to read data. The default value is 0. The value range is [0, Buffer.length - 8].\n         * @returns { bigint } Return a unsigned, big-endian 64-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readBigUInt64BE(offset?: number): bigint;\n        /**\n         * Reads a unsigned, little-endian 64-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { bigint } Return a unsigned, little-endian 64-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads a unsigned, little-endian 64-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { bigint } Return a unsigned, little-endian 64-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads a 64-bit, little-endian, unsigned big integer from this Buffer instance at the specified offset.\n         *\n         * @param { number } [offset] - Number of bytes to skip before starting to read data. The default value is 0. The value range is [0, Buffer.length - 8].\n         * @returns { bigint } Return a unsigned, little-endian 64-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readBigUInt64LE(offset?: number): bigint;\n        /**\n         * Reads a 64-bit, big-endian double from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { number } Return a 64-bit, big-endian double\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads a 64-bit, big-endian double from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { number } Return a 64-bit, big-endian double\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads a 64-bit, big-endian, double-precision floating-point number from this Buffer instance at the specified offset.\n         *\n         * @param { number } [offset] - Number of bytes to skip before starting to read data. The default value is 0. The value range is [0, Buffer.length - 8].\n         * @returns { number } Return a 64-bit, big-endian double\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readDoubleBE(offset?: number): number;\n        /**\n         * Reads a 64-bit, little-endian double from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { number } Return a 64-bit, little-endian double\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads a 64-bit, little-endian double from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { number } Return a 64-bit, little-endian double\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads a 64-bit, little-endian, double-precision floating-point number from this Buffer instance at the specified offset.\n         *\n         * @param { number } [offset] - Number of bytes to skip before starting to read data. The default value is 0. The value range is [0, Buffer.length - 8].\n         * @returns { number } Return a 64-bit, little-endian double\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readDoubleLE(offset?: number): number;\n        /**\n         * Reads a 32-bit, big-endian float from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 4\n         * @returns { number } Return a 32-bit, big-endian float\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads a 32-bit, big-endian float from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 4\n         * @returns { number } Return a 32-bit, big-endian float\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads a 32-bit, big-endian, single-precision floating-point number from this Buffer instance at the specified offset.\n         *\n         * @param { number } [offset] - Number of bytes to skip before starting to read data. The default value is 0. The value range is [0, Buffer.length - 4].\n         * @returns { number } Return a 32-bit, big-endian float\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readFloatBE(offset?: number): number;\n        /**\n         * Reads a 32-bit, little-endian float from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 4\n         * @returns { number } Return a 32-bit, little-endian float\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads a 32-bit, little-endian float from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 4\n         * @returns { number } Return a 32-bit, little-endian float\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads a 32-bit, little-endian, single-precision floating-point number from this Buffer instance at the specified offset.\n         *\n         * @param { number } [offset] - Number of bytes to skip before starting to read data. The default value is 0. The value range is [0, Buffer.length - 4].\n         * @returns { number } Return a 32-bit, little-endian float\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readFloatLE(offset?: number): number;\n        /**\n         * Reads a signed 8-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 1\n         * @returns { number } Return a signed 8-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 1. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads a signed 8-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 1\n         * @returns { number } Return a signed 8-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 1. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads an 8-bit signed integer from this Buffer instance at the specified offset.\n         *\n         * @param { number } [offset] - Number of bytes to skip before starting to read data. The default value is 0. The value range is [0, Buffer.length - 1].\n         * @returns { number } Return a signed 8-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 1. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readInt8(offset?: number): number;\n        /**\n         * Reads a signed, big-endian 16-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 2\n         * @returns { number } Return a signed, big-endian 16-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 2. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads a signed, big-endian 16-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 2\n         * @returns { number } Return a signed, big-endian 16-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 2. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads a 16-bit, big-endian, signed integer from this Buffer instance at the specified offset.\n         *\n         * @param { number } [offset] - Number of bytes to skip before starting to read data. The default value is 0. The value range is [0, Buffer.length - 2].\n         * @returns { number } Return a signed, big-endian 16-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 2. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readInt16BE(offset?: number): number;\n        /**\n         * Reads a signed, little-endian 16-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 2\n         * @returns { number } Return a signed, little-endian 16-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 2. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads a signed, little-endian 16-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 2\n         * @returns { number } Return a signed, little-endian 16-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 2. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads a 16-bit, little-endian, signed integer from this Buffer instance at the specified offset.\n         *\n         * @param { number } [offset] - Number of bytes to skip before starting to read data. The default value is 0. The value range is [0, Buffer.length - 2].\n         * @returns { number } Return a signed, little-endian 16-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 2. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readInt16LE(offset?: number): number;\n        /**\n         * Reads a signed, big-endian 32-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 4\n         * @returns { number } Return a signed, big-endian 32-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads a signed, big-endian 32-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 4\n         * @returns { number } Return a signed, big-endian 32-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads a 32-bit, big-endian, signed integer from this Buffer instance at the specified offset.\n         *\n         * @param { number } [offset] - Number of bytes to skip before starting to read data. The default value is 0. The value range is [0, Buffer.length - 4].\n         * @returns { number } Return a signed, big-endian 32-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readInt32BE(offset?: number): number;\n        /**\n         * Reads a signed, little-endian 32-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 4\n         * @returns { number } Return a signed, little-endian 32-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads a signed, little-endian 32-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 4\n         * @returns { number } Return a signed, little-endian 32-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads a 32-bit, little-endian, signed integer from this Buffer instance at the specified offset.\n         *\n         * @param { number } [offset] - Number of bytes to skip before starting to read data. The default value is 0. The value range is [0, Buffer.length - 4].\n         * @returns { number } Return a signed, little-endian 32-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readInt32LE(offset?: number): number;\n        /**\n         * Reads byteLength number of bytes from buf at the specified offset and interprets the result as a big-endian,\n         * two's complement signed value supporting up to 48 bits of accuracy\n         *\n         * @param { number } offset - offset offset Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - byteLength\n         * @param { number } byteLength - byteLength byteLength Number of bytes to read. Must satisfy 0 < byteLength <= 6\n         * @returns { number }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads byteLength number of bytes from buf at the specified offset and interprets the result as a big-endian,\n         * two's complement signed value supporting up to 48 bits of accuracy\n         *\n         * @param { number } offset - offset offset Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - byteLength\n         * @param { number } byteLength - byteLength byteLength Number of bytes to read. Must satisfy 0 < byteLength <= 6\n         * @returns { number }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads the specified number of bytes from this Buffer instance at the specified offset, and interprets the result as a big-endian,\n         * two's complement signed value that supports up to 48 bits of precision.\n         *\n         * @param { number } offset - Number of bytes to skip before starting to read data. The default value is 0.\n         * The value range is [0, Buffer.length - byteLength].\n         * @param { number } byteLength - Number of bytes to read. The value range is [1, 6].\n         * @returns { number }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readIntBE(offset: number, byteLength: number): number;\n        /**\n         * Reads byteLength number of bytes from buf at the specified offset and interprets the result as a little-endian,\n         * two's complement signed value supporting up to 48 bits of accuracy.\n         *\n         * @param { number } offset - offset offset Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - byteLength\n         * @param { number } byteLength - byteLength byteLength Number of bytes to read. Must satisfy 0 < byteLength <= 6\n         * @returns { number }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads byteLength number of bytes from buf at the specified offset and interprets the result as a little-endian,\n         * two's complement signed value supporting up to 48 bits of accuracy.\n         *\n         * @param { number } offset - offset offset Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - byteLength\n         * @param { number } byteLength - byteLength byteLength Number of bytes to read. Must satisfy 0 < byteLength <= 6\n         * @returns { number }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads the specified number of bytes from this Buffer instance at the specified offset and interprets the result as a little-endian,\n         * two's complement signed value that supports up to 48 bits of precision.\n         *\n         * @param { number } offset - Number of bytes to skip before starting to read data. The default value is 0.\n         * The value range is [0, Buffer.length - byteLength].\n         * @param { number } byteLength - Number of bytes to read. The value range is [1, 6].\n         * @returns { number }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readIntLE(offset: number, byteLength: number): number;\n        /**\n         * Reads an unsigned 8-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy 0 <= offset <= buf.length - 1\n         * @returns { number } Reads an unsigned 8-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 1. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads an unsigned 8-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy 0 <= offset <= buf.length - 1\n         * @returns { number } Reads an unsigned 8-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 1. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads an 8-bit unsigned integer from this Buffer instance at the specified offset.\n         *\n         * @param { number } [offset] - Number of bytes to skip before starting to read data. The default value is 0. The value range is [0, Buffer.length - 1].\n         * @returns { number } Reads an unsigned 8-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 1. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readUInt8(offset?: number): number;\n        /**\n         * Reads an unsigned, big-endian 16-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy 0 <= offset <= buf.length - 2\n         * @returns { number } Reads an unsigned, big-endian 16-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 2. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads an unsigned, big-endian 16-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy 0 <= offset <= buf.length - 2\n         * @returns { number } Reads an unsigned, big-endian 16-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 2. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads a 16-bit, big-endian, unsigned integer from this Buffer instance at the specified offset.\n         *\n         * @param { number } [offset] - Number of bytes to skip before starting to read data. The default value is 0. The value range is [0, Buffer.length - 2].\n         * @returns { number } Reads an unsigned, big-endian 16-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 2. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readUInt16BE(offset?: number): number;\n        /**\n         * Reads an unsigned, little-endian 16-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy 0 <= offset <= buf.length - 2\n         * @returns { number } Reads an unsigned, little-endian 16-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 2. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads an unsigned, little-endian 16-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy 0 <= offset <= buf.length - 2\n         * @returns { number } Reads an unsigned, little-endian 16-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 2. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads a 16-bit, little-endian, unsigned integer from this Buffer instance at the specified offset.\n         *\n         * @param { number } [offset] - Number of bytes to skip before starting to read data. The default value is 0. The value range is [0, Buffer.length - 2].\n         * @returns { number } Reads an unsigned, little-endian 16-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 2. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readUInt16LE(offset?: number): number;\n        /**\n         * Reads an unsigned, big-endian 32-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy 0 <= offset <= buf.length - 4\n         * @returns { number } Reads an unsigned, big-endian 32-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads an unsigned, big-endian 32-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy 0 <= offset <= buf.length - 4\n         * @returns { number } Reads an unsigned, big-endian 32-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads a 32-bit, big-endian, unsigned integer from this Buffer instance at the specified offset.\n         *\n         * @param { number } [offset] - Number of bytes to skip before starting to read data. The default value is 0. The value range is [0, Buffer.length - 4].\n         * @returns { number } Reads an unsigned, big-endian 32-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readUInt32BE(offset?: number): number;\n        /**\n         * Reads an unsigned, little-endian 32-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy 0 <= offset <= buf.length - 4\n         * @returns { number } Reads an unsigned, little-endian 32-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads an unsigned, little-endian 32-bit integer from buf at the specified offset\n         *\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy 0 <= offset <= buf.length - 4\n         * @returns { number } Reads an unsigned, little-endian 32-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads a 32-bit, little-endian, unsigned integer from this Buffer instance at the specified offset.\n         *\n         * @param { number } [offset] - Number of bytes to skip before starting to read data. The default value is 0. The value range is [0, Buffer.length - 4].\n         * @returns { number } Reads an unsigned, little-endian 32-bit integer\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readUInt32LE(offset?: number): number;\n        /**\n         * Reads byteLength number of bytes from buf at the specified offset and interprets the result as\n         * an unsigned big-endian integer supporting up to 48 bits of accuracy.\n         *\n         * @param { number } offset - offset offset Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - byteLength\n         * @param { number } byteLength - byteLength byteLength Number of bytes to read. Must satisfy 0 < byteLength <= 6\n         * @returns { number }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads byteLength number of bytes from buf at the specified offset and interprets the result as\n         * an unsigned big-endian integer supporting up to 48 bits of accuracy.\n         *\n         * @param { number } offset - offset offset Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - byteLength\n         * @param { number } byteLength - byteLength byteLength Number of bytes to read. Must satisfy 0 < byteLength <= 6\n         * @returns { number }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads the specified number of bytes from this Buffer instance at the specified offset, and interprets the result as an unsigned,\n         * big-endian integer that supports up to 48 bits of precision.\n         *\n         * @param { number } offset - Number of bytes to skip before starting to read data. The default value is 0.\n         * The value range is [0, Buffer.length - byteLength].\n         * @param { number } byteLength - Number of bytes to read. The value range is [1, 6].\n         * @returns { number }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readUIntBE(offset: number, byteLength: number): number;\n        /**\n         * Reads byteLength number of bytes from buf at the specified offset and interprets the result as an unsigned,\n         * little-endian integer supporting up to 48 bits of accuracy.\n         *\n         * @param { number } offset - offset offset Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - byteLength\n         * @param { number } byteLength - byteLength byteLength Number of bytes to read. Must satisfy 0 < byteLength <= 6\n         * @returns { number }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Reads byteLength number of bytes from buf at the specified offset and interprets the result as an unsigned,\n         * little-endian integer supporting up to 48 bits of accuracy.\n         *\n         * @param { number } offset - offset offset Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - byteLength\n         * @param { number } byteLength - byteLength byteLength Number of bytes to read. Must satisfy 0 < byteLength <= 6\n         * @returns { number }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads the specified number of bytes from this Buffer instance at the specified offset, and interprets the result as an unsigned,\n         * little-endian integer that supports up to 48 bits of precision.\n         *\n         * @param { number } offset - Number of bytes to skip before starting to read data. The default value is 0.\n         * The value range is [0, Buffer.length - byteLength].\n         * @param { number } byteLength - Number of bytes to read. The value range is [1, 6].\n         * @returns { number }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        readUIntLE(offset: number, byteLength: number): number;\n        /**\n         * Returns a new Buffer that references the same memory as the original, but offset and cropped by the start and end indices.\n         *\n         * @param { number } [start] - start [start = 0] Where the new Buffer will start\n         * @param { number } [end] - end [end = buf.length] Where the new Buffer will end (not inclusive)\n         * @returns { Buffer } Returns a new Buffer that references the same memory as the original\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Returns a new Buffer that references the same memory as the original, but offset and cropped by the start and end indices.\n         *\n         * @param { number } [start] - start [start = 0] Where the new Buffer will start\n         * @param { number } [end] - end [end = buf.length] Where the new Buffer will end (not inclusive)\n         * @returns { Buffer } Returns a new Buffer that references the same memory as the original\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Truncates this Buffer instance from the specified position to create a new Buffer instance.\n         *\n         * @param { number } [start] - Offset to the start position in this Buffer instance where data is truncated. The default value is 0.\n         * @param { number } [end] - Offset to the end position in this Buffer instance (not inclusive). The default value is the length of this Buffer instance.\n         * @returns { Buffer } Returns a new Buffer that references the same memory as the original\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        subarray(start?: number, end?: number): Buffer;\n        /**\n         * Interprets buf as an array of unsigned 16-bit integers and swaps the byte order in-place.\n         *\n         * @returns { Buffer } A reference to buf\n         * @throws { BusinessError } 10200009 - The buffer size must be a multiple of 16-bits\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Interprets buf as an array of unsigned 16-bit integers and swaps the byte order in-place.\n         *\n         * @returns { Buffer } A reference to buf\n         * @throws { BusinessError } 10200009 - The buffer size must be a multiple of 16-bits\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Interprets this Buffer instance as an array of unsigned 16-bit integers and swaps the byte order in place.\n         *\n         * @returns { Buffer } A reference to buf\n         * @throws { BusinessError } 10200009 - The buffer size must be a multiple of 16-bits\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        swap16(): Buffer;\n        /**\n         * Interprets buf as an array of unsigned 32-bit integers and swaps the byte order in-place.\n         *\n         * @returns { Buffer } A reference to buf\n         * @throws { BusinessError } 10200009 - The buffer size must be a multiple of 32-bits\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Interprets buf as an array of unsigned 32-bit integers and swaps the byte order in-place.\n         *\n         * @returns { Buffer } A reference to buf\n         * @throws { BusinessError } 10200009 - The buffer size must be a multiple of 32-bits\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Interprets this Buffer instance as an array of unsigned 32-bit integers and swaps the byte order in place.\n         *\n         * @returns { Buffer } A reference to buf\n         * @throws { BusinessError } 10200009 - The buffer size must be a multiple of 32-bits\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        swap32(): Buffer;\n        /**\n         * Interprets buf as an array of unsigned 64-bit integers and swaps the byte order in-place.\n         *\n         * @returns { Buffer } A reference to buf\n         * @throws { BusinessError } 10200009 - The buffer size must be a multiple of 64-bits\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Interprets buf as an array of unsigned 64-bit integers and swaps the byte order in-place.\n         *\n         * @returns { Buffer } A reference to buf\n         * @throws { BusinessError } 10200009 - The buffer size must be a multiple of 64-bits\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Interprets this Buffer instance as an array of unsigned 64-bit integers and swaps the byte order in place.\n         *\n         * @returns { Buffer } A reference to buf\n         * @throws { BusinessError } 10200009 - The buffer size must be a multiple of 64-bits\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        swap64(): Buffer;\n        /**\n         * Returns a JSON representation of buf\n         *\n         * @returns { Object } Returns a JSON\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Returns a JSON representation of buf\n         *\n         * @returns { Object } Returns a JSON\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Converts this Buffer instance into a JSON object.\n         *\n         * @returns { Object } Returns a JSON\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        toJSON(): Object;\n        /**\n         * Decodes buf to a string according to the specified character encoding in encoding\n         *\n         * @param { string } [encoding] - encoding [encoding='utf8'] The character encoding to use\n         * @param { number } [start] - start [start = 0] The byte offset to start decoding at\n         * @param { number } [end] - end [end = buf.length] The byte offset to stop decoding at (not inclusive)\n         * @returns { string }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Decodes buf to a string according to the specified character encoding in encoding\n         *\n         * @param { string } [encoding] - encoding [encoding='utf8'] The character encoding to use\n         * @param { number } [start] - start [start = 0] The byte offset to start decoding at\n         * @param { number } [end] - end [end = buf.length] The byte offset to stop decoding at (not inclusive)\n         * @returns { string }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Converts the data at the specified position in this Buffer instance into a string in the specified encoding format.\n         *\n         * @param { string } [encoding] - Encoding format (valid only when value is a string). The default value is 'utf8'.\n         * @param { number } [start] - Offset to the start position of the data to convert. The default value is 0.\n         * @param { number } [end] - Offset to the end position of the data to convert. The default value is the length of this Buffer instance.\n         * @returns { string }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        toString(encoding?: string, start?: number, end?: number): string;\n        /**\n         * Writes string to buf at offset according to the character encoding in encoding\n         *\n         * @param { string } str - str str Writes string to buf at offset according to the character encoding in encoding\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write string\n         * @param { number } [length] - length [length = buf.length - offset] Maximum number of bytes to write (written bytes will not exceed buf.length - offset)\n         * @param { string } [encoding] - encoding [encoding='utf8'] The character encoding of string.\n         * @returns { number } Number of bytes written.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[offset/length]\" is out of range. It must be >= 0 and <= buf.length. Received value is: [offset/length]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes string to buf at offset according to the character encoding in encoding\n         *\n         * @param { string } str - str str Writes string to buf at offset according to the character encoding in encoding\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write string\n         * @param { number } [length] - length [length = buf.length - offset] Maximum number of bytes to write (written bytes will not exceed buf.length - offset)\n         * @param { string } [encoding] - encoding [encoding='utf8'] The character encoding of string.\n         * @returns { number } Number of bytes written.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[offset/length]\" is out of range. It must be >= 0 and <= buf.length. Received value is: [offset/length]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a string of the specified length to this Buffer instance at the specified position in the given encoding format.\n         *\n         * @param { string } str - String to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0.\n         * @param { number } [length] - Maximum number of bytes to write. The default value is Buffer.length minus offset.\n         * @param { string } [encoding] - Encoding format of the string. The default value is 'utf8'.\n         * @returns { number } Number of bytes written.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[offset/length]\" is out of range. It must be >= 0 and <= buf.length. Received value is: [offset/length]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        write(str: string, offset?: number, length?: number, encoding?: string): number;\n        /**\n         * Writes value to buf at the specified offset as big-endian.\n         *\n         * @param { bigint } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0]  Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types; 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes value to buf at the specified offset as big-endian.\n         *\n         * @param { bigint } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0]  Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a 64-bit, big-endian, signed big integer to this Buffer instance at the specified offset.\n         *\n         * @param { bigint } value - Data to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0. The value range is [0, Buffer.length - 8].\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeBigInt64BE(value: bigint, offset?: number): number;\n        /**\n         * Writes value to buf at the specified offset as little-endian.\n         *\n         * @param { bigint } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0]  Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes value to buf at the specified offset as little-endian.\n         *\n         * @param { bigint } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0]  Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a 64-bit, little-endian, signed big integer to this Buffer instance at the specified offset.\n         *\n         * @param { bigint } value - Data to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0. The value range is [0, Buffer.length - 8].\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeBigInt64LE(value: bigint, offset?: number): number;\n        /**\n         * Writes value to buf at the specified offset as big-endian.\n         *\n         * @param { bigint } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0]  Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes value to buf at the specified offset as big-endian.\n         *\n         * @param { bigint } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0]  Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a 64-bit, big-endian, unsigned big integer to this Buffer instance at the specified offset.\n         *\n         * @param { bigint } value - Data to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0. The value range is [0, Buffer.length - 8].\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeBigUInt64BE(value: bigint, offset?: number): number;\n        /**\n         * Writes value to buf at the specified offset as little-endian.\n         *\n         * @param { bigint } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0]  Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes value to buf at the specified offset as little-endian.\n         *\n         * @param { bigint } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0]  Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a 64-bit, little-endian, unsigned big integer to this Buffer instance at the specified offset.\n         *\n         * @param { bigint } value - Data to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0. The value range is [0, Buffer.length - 8].\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeBigUInt64LE(value: bigint, offset?: number): number;\n        /**\n         * Writes value to buf at the specified offset as big-endian.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0]  Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes value to buf at the specified offset as big-endian.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0]  Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a 64-bit, big-endian, double-precision floating-point number to this Buffer instance at the specified offset.\n         *\n         * @param { number } value - Data to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0. The value range is [0, Buffer.length - 8].\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeDoubleBE(value: number, offset?: number): number;\n        /**\n         * Writes value to buf at the specified offset as little-endian.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0]  Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes value to buf at the specified offset as little-endian.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0]  Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 8\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a 64-bit, little-endian, double-precision floating-point number to this Buffer instance at the specified offset.\n         *\n         * @param { number } value - Data to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0. The value range is [0, Buffer.length - 8].\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeDoubleLE(value: number, offset?: number): number;\n        /**\n         * Writes value to buf at the specified offset as big-endian.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0]  Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 4\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes value to buf at the specified offset as big-endian.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0]  Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 4\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a 32-bit, big-endian, single-precision floating-point number to this Buffer instance at the specified offset.\n         *\n         * @param { number } value - Data to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0. The value range is [0, Buffer.length - 4].\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeFloatBE(value: number, offset?: number): number;\n        /**\n         * Writes value to buf at the specified offset as little-endian.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0]  Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 4\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes value to buf at the specified offset as little-endian.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0]  Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 4\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a 32-bit, little-endian, single-precision floating-point number to this Buffer instance at the specified offset.\n         *\n         * @param { number } value - Data to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0. The value range is [0, Buffer.length - 4].\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"offset\" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeFloatLE(value: number, offset?: number): number;\n        /**\n         * Writes value to buf at the specified offset. value must be a valid signed 8-bit integer.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 1\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes value to buf at the specified offset. value must be a valid signed 8-bit integer.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 1\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes an 8-bit signed integer to this Buffer instance at the specified offset.\n         *\n         * @param { number } value - Data to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0. The value range is [0, Buffer.length - 1].\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeInt8(value: number, offset?: number): number;\n        /**\n         * Writes value to buf at the specified offset as big-endian. The value must be a valid signed 16-bit integer\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 2\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes value to buf at the specified offset as big-endian. The value must be a valid signed 16-bit integer\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 2\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a 16-bit, big-endian, signed integer to this Buffer instance at the specified offset.\n         *\n         * @param { number } value - Data to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0. The value range is [0, Buffer.length - 2].\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeInt16BE(value: number, offset?: number): number;\n        /**\n         * Writes value to buf at the specified offset as little-endian. The value must be a valid signed 16-bit integer\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 2\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes value to buf at the specified offset as little-endian. The value must be a valid signed 16-bit integer\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 2\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a 16-bit, little-endian, signed integer to this Buffer instance at the specified offset.\n         *\n         * @param { number } value - Data to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0. The value range is [0, Buffer.length - 2].\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeInt16LE(value: number, offset?: number): number;\n        /**\n         * Writes value to buf at the specified offset as big-endian. The value must be a valid signed 32-bit integer.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 4\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes value to buf at the specified offset as big-endian. The value must be a valid signed 32-bit integer.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 4\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a 32-bit, big-endian, signed integer to this Buffer instance at the specified offset.\n         *\n         * @param { number } value - Data to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0. The value range is [0, Buffer.length - 4].\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeInt32BE(value: number, offset?: number): number;\n        /**\n         * Writes value to buf at the specified offset as little-endian. The value must be a valid signed 32-bit integer.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 4\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes value to buf at the specified offset as little-endian. The value must be a valid signed 32-bit integer.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 4\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a 32-bit, little-endian, signed integer to this Buffer instance at the specified offset.\n         *\n         * @param { number } value - Data to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0. The value range is [0, Buffer.length - 4].\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeInt32LE(value: number, offset?: number): number;\n        /**\n         * Writes byteLength bytes of value to buf at the specified offset as big-endian\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } offset - offset offset Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - byteLength\n         * @param { number } byteLength - byteLength byteLength Number of bytes to write. Must satisfy 0 < byteLength <= 6\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes byteLength bytes of value to buf at the specified offset as big-endian\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } offset - offset offset Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - byteLength\n         * @param { number } byteLength - byteLength byteLength Number of bytes to write. Must satisfy 0 < byteLength <= 6\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a big-endian signed value of the specified length to this Buffer instance at the specified offset.\n         *\n         * @param { number } value - Data to write.\n         * @param { number } offset - Number of bytes to skip before starting to write data. The default value is 0.\n         * The value range is [0, Buffer.length - byteLength].\n         * @param { number } byteLength - Number of bytes to write.\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeIntBE(value: number, offset: number, byteLength: number): number;\n        /**\n         * Writes byteLength bytes of value to buf at the specified offset as little-endian\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } offset - offset offset  Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - byteLength\n         * @param { number } byteLength - byteLength byteLength Number of bytes to write. Must satisfy 0 < byteLength <= 6\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes byteLength bytes of value to buf at the specified offset as little-endian\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } offset - offset offset  Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - byteLength\n         * @param { number } byteLength - byteLength byteLength Number of bytes to write. Must satisfy 0 < byteLength <= 6\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a little-endian signed value of the specified length to this Buffer instance at the specified offset.\n         *\n         * @param { number } value - Data to write.\n         * @param { number } offset - Number of bytes to skip before starting to write data. The default value is 0.\n         * The value range is [0, Buffer.length - byteLength].\n         * @param { number } byteLength - Number of bytes to write.\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeIntLE(value: number, offset: number, byteLength: number): number;\n        /**\n         * Writes value to buf at the specified offset. value must be a valid unsigned 8-bit integer\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - 1\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes value to buf at the specified offset. value must be a valid unsigned 8-bit integer\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - 1\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes an 8-bit unsigned integer to this Buffer instance at the specified offset.\n         *\n         * @param { number } value - Data to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0. The value range is [0, Buffer.length - 1].\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeUInt8(value: number, offset?: number): number;\n        /**\n         * Writes value to buf at the specified offset as big-endian. The value must be a valid unsigned 16-bit integer.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - 2\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes value to buf at the specified offset as big-endian. The value must be a valid unsigned 16-bit integer.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - 2\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a 16-bit, big-endian, unsigned integer to this Buffer instance at the specified offset.\n         *\n         * @param { number } value - \tData to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0. The value range is [0, Buffer.length - 2].\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeUInt16BE(value: number, offset?: number): number;\n        /**\n         * Writes value to buf at the specified offset as little-endian. The value must be a valid unsigned 16-bit integer.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - 2\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes value to buf at the specified offset as little-endian. The value must be a valid unsigned 16-bit integer.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - 2\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a 16-bit, little-endian, unsigned integer to this Buffer instance at the specified offset.\n         *\n         * @param { number } value - Data to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0. The value range is [0, Buffer.length - 2].\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeUInt16LE(value: number, offset?: number): number;\n        /**\n         * Writes value to buf at the specified offset as big-endian. The value must be a valid unsigned 32-bit integer.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - 4\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes value to buf at the specified offset as big-endian. The value must be a valid unsigned 32-bit integer.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - 4\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a 32-bit, big-endian, unsigned integer to this Buffer instance at the specified offset.\n         *\n         * @param { number } value - Data to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0. The value range is [0, Buffer.length - 4].\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeUInt32BE(value: number, offset?: number): number;\n        /**\n         * Writes value to buf at the specified offset as little-endian. The value must be a valid unsigned 32-bit integer.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - 4\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes value to buf at the specified offset as little-endian. The value must be a valid unsigned 32-bit integer.\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - 4\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes a 32-bit, little-endian, unsigned integer to this Buffer instance at the specified offset.\n         *\n         * @param { number } value - Data to write.\n         * @param { number } [offset] - Number of bytes to skip before starting to write data. The default value is 0. The value range is [0, Buffer.length - 4].\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * 3.Parameter verification failed.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeUInt32LE(value: number, offset?: number): number;\n        /**\n         * Writes byteLength bytes of value to buf at the specified offset as big-endian\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } offset - offset offset Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - byteLength\n         * @param { number } byteLength - byteLength byteLength Number of bytes to write. Must satisfy 0 < byteLength <= 6\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes byteLength bytes of value to buf at the specified offset as big-endian\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } offset - offset offset Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - byteLength\n         * @param { number } byteLength - byteLength byteLength Number of bytes to write. Must satisfy 0 < byteLength <= 6\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes an unsigned big-endian value of the specified length to this Buffer instance at the specified offset.\n         *\n         * @param { number } value - Data to write.\n         * @param { number } offset - Number of bytes to skip before starting to write data. The default value is 0.\n         * The value range is [0, Buffer.length - byteLength].\n         * @param { number } byteLength - Number of bytes to write.\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeUIntBE(value: number, offset: number, byteLength: number): number;\n        /**\n         * Writes byteLength bytes of value to buf at the specified offset as little-endian\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } offset - offset offset Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - byteLength\n         * @param { number } byteLength - byteLength byteLength Number of bytes to write. Must satisfy 0 < byteLength <= 6\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Writes byteLength bytes of value to buf at the specified offset as little-endian\n         *\n         * @param { number } value - value value Number to be written to buf\n         * @param { number } offset - offset offset Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - byteLength\n         * @param { number } byteLength - byteLength byteLength Number of bytes to write. Must satisfy 0 < byteLength <= 6\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes an unsigned little-endian value of the specified length to this Buffer instance at the specified offset.\n         *\n         * @param { number } value - Data to write.\n         * @param { number } offset - Number of bytes to skip before starting to write data. The default value is 0.\n         * The value range is [0, Buffer.length - byteLength].\n         * @param { number } byteLength - Number of bytes to write.\n         * @returns { number } offset plus the number of bytes written\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @throws { BusinessError } 10200001 - The value of \"[param]\" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param]\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        writeUIntLE(value: number, offset: number, byteLength: number): number;\n    }\n    /**\n     * Process data as blob type\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Process data as blob type\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Process data as blob type\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    class Blob {\n        /**\n         * Creates a new Blob object containing a concatenation of the given sources.\n         *\n         * @param { string[] | ArrayBuffer[] | TypedArray[] | DataView[] | Blob[] } sources - sources sources An array of string, <ArrayBuffer>,\n         * <TypedArray>, <DataView>, or <Blob> objects, or any mix of such objects, that will be stored within the Blob\n         * @param { Object } [options] - options options {endings: string, type: string}\n         *                 endings:  One of either 'transparent' or 'native'.\n         *                 type: The Blob content-type\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Creates a new Blob object containing a concatenation of the given sources.\n         *\n         * @param { string[] | ArrayBuffer[] | TypedArray[] | DataView[] | Blob[] } sources - sources sources An array of string, <ArrayBuffer>,\n         * <TypedArray>, <DataView>, or <Blob> objects, or any mix of such objects, that will be stored within the Blob\n         * @param { Object } [options] - options options {endings: string, type: string}\n         *                 endings:  One of either 'transparent' or 'native'.\n         *                 type: The Blob content-type\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * A constructor used to create a Blob instance.\n         *\n         * @param { string[] | ArrayBuffer[] | TypedArray[] | DataView[] | Blob[] } sources - Data sources of the Blob instance.\n         * @param { Object } [options] - options {endings: string, type: string}\n         * - endings: specifies how the terminator '\\n' is output. The value can be 'native' or 'transparent'. 'native'\n         * means that the terminator follows the system. 'transparent' means that the terminator stored in the Blob\n         * instance remains unchanged. The default value is 'transparent'.\n         * - type: type of the data in the Blob instance. This type represents the MIME type of the data. However,\n         * it is not used for type format validation. The default value is ''.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        constructor(sources: string[] | ArrayBuffer[] | TypedArray[] | DataView[] | Blob[], options?: Object);\n        /**\n         * The total size of the Blob in bytes\n         *\n         * @type { number }\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * The total size of the Blob in bytes\n         *\n         * @type { number }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Total size of the Blob instance, in bytes.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        size: number;\n        /**\n         * The content-type of the Blob\n         *\n         * @type { string }\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * The content-type of the Blob\n         *\n         * @type { string }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Type of the data in the Blob instance.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        type: string;\n        /**\n         * Returns a promise that fulfills with an <ArrayBuffer> containing a copy of the Blob data.\n         *\n         * @returns { Promise<ArrayBuffer> }\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Returns a promise that fulfills with an <ArrayBuffer> containing a copy of the Blob data.\n         *\n         * @returns { Promise<ArrayBuffer> }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Puts the Blob data into an ArrayBuffer instance. This API uses a promise to return the result.\n         *\n         * @returns { Promise<ArrayBuffer> }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        arrayBuffer(): Promise<ArrayBuffer>;\n        /**\n         * Creates and returns a new Blob containing a subset of this Blob objects data. The original Blob is not altered\n         *\n         * @param { number } [start] - start start The starting index\n         * @param { number } [end] - end end The ending index\n         * @param { string } [type] - type type The content-type for the new Blob\n         * @returns { Blob }\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Creates and returns a new Blob containing a subset of this Blob objects data. The original Blob is not altered\n         *\n         * @param { number } [start] - start start The starting index\n         * @param { number } [end] - end end The ending index\n         * @param { string } [type] - type type The content-type for the new Blob\n         * @returns { Blob }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Creates a Blob instance by copying specified data from this Blob instance.\n         *\n         * @param { number } [start] - Offset to the start position of the data to copy. The default value is 0.\n         * @param { number } [end] - Offset to the end position of the data to copy. The default value is the data length in the original Blob instance.\n         * @param { string } [type] - Type of the data in the new Blob instance. The default value is ''.\n         * @returns { Blob }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        slice(start?: number, end?: number, type?: string): Blob;\n        /**\n         * Returns a promise that fulfills with the contents of the Blob decoded as a UTF-8 string.\n         *\n         * @returns { Promise<string> }\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Returns a promise that fulfills with the contents of the Blob decoded as a UTF-8 string.\n         *\n         * @returns { Promise<string> }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Returns text in UTF-8 format. This API uses a promise to return the result.\n         *\n         * @returns { Promise<string> }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        text(): Promise<string>;\n    }\n}\nexport default buffer;\n",
}
export default FILE;